package com.usefullc.system.service.component;

import com.usefullc.system.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author: Sampson
 * @date: 2022-03-29 17:58
 */
@Component
@Order(1)
public class SystemApplicationRunner implements ApplicationRunner {

    @Autowired
    private CommonService commonService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        //启动初始化操作
        commonService.init();
    }
}
